package com.stress.testing.plugin.nosql.redis.util;

import com.stress.testing.plugin.nosql.redis.resolver.JedisMethodArgsResolver;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class MethodNameArrayGenerateUtil {
    public static void main(String[] args) {
        Map<String, List<Method>> map = ReflectUtills.resolveMethodMap(JedisMethodArgsResolver.class);
        Set<String> strings = map.keySet();
        StringBuilder sb = new StringBuilder();
        sb.append("String[] methodArr = new String[]{");
        for (String s : strings) {
            sb.append("\"").append(s).append("\",");
        }

        sb.append("};");
        System.out.println(sb);
    }
}
